#include<stdio.h>

int main()
{
	char str[] = "I am a hard-working persion!";
	FILE * fp;
	fp = fopen("puts.txt", "w");
	fputs(str,fp);
	fclose(fp);

	fp = fopen("puts.txt", "r");
	char s[1024];
	while((fgets(s,1024,fp))!=NULL){
		puts(s);
	}
    fclose(fp);

	return 0;
}
